/*
 * @Descripttion: 
 * @version: 
 * @Author: dawn
 * @Date: 2020-11-16 15:34:11
 * @LastEditors: dawn
 * @LastEditTime: 2020-11-17 17:18:43
 */
import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

const constantRoutes = [
    { 
        path: '/',
        redirect: 'two',
        component: () => import('../views/index')
    },
    { 
        path: '/two', 
        component: () => import('../views/index')
    },
    {
        path: '/err',
        component: () => import('../../communal/404')
    },
    { path: '*', redirect: '/err' }
]
  
const router = new Router({
    routes: constantRoutes // (缩写) 相当于 routes: routes
})

export default router